package com.darren.center.design.patterns.exceptions;

/**
 * <h3>design-patterns</h3>
 * <p>开放接口错误类</p>
 *
 * @author : Darren
 * @date : 2021年06月14日 19:44:47
 **/
public class ApiBizException extends BizException{


    private static final long serialVersionUID = -2441034827677516601L;

    public ApiBizException(){}

    public ApiBizException(Throwable cause){
        super(cause);
    }

    public ApiBizException(int code, String msgFormat, Object... args) {
        super(code, msgFormat, args);
    }

    public ApiBizException(int code, String msg) {
        super(code, msg);
    }

    public static final int VERIFY_PARAM_ERROR = 10160002;
    public static final int VERIFY_SIGN_ERROR = 10160003;
    public static final int VERIFY_IP_ERROR = 10160004;
    public static final ApiBizException UNKNOWN_EXCEPTION = new ApiBizException(
            10160001, "系统错误");

}

